import { Outlet, useNavigate } from 'react-router-dom'
import './App.css'

function App() {
const navigate=useNavigate()
  return (
   <div>
    <button onClick={()=>navigate('/data')}>data</button>
    <button onClick={()=>navigate('/data1')}>data1</button>
    <Outlet></Outlet>
   </div>
  )
}

export default App
